package com.example.myanimator.circleanimator

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.animation.AnimationUtils
import android.widget.ImageView
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.viewpager2.widget.ViewPager2
import com.bumptech.glide.Glide
import com.example.myanimator.R
import com.example.myanimator.databinding.ActivityCircleScrollerBinding
import com.example.myanimator.databinding.ActivityScrollerBinding

/**
 * @author tgw
 * @date 2021/11/22
 * @describe 圆圈倒计时
 *
 * view的生命周期
 * https://blog.csdn.net/android_cmos/article/details/104774007
 */
class CircleActivity : AppCompatActivity() {


    private lateinit var mBind: ActivityCircleScrollerBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBind = DataBindingUtil.setContentView(this, R.layout.activity_circle_scroller)
        mBind.startAnima.setOnClickListener(){
            mBind.cirAnima1.setCircleValueAnimatorStart(4000f,1000f)

            mBind.cirAnimaFinnish.setCircleStyleStart(System.currentTimeMillis()+3000,System.currentTimeMillis()+6*1000L)
        }


    }





}